class ChangeArtistRelations < ActiveRecord::Migration
  def self.up
    change_table :artists do |t|
      t.string :proper_name
      t.rename :isGroup, :is_group
      t.rename :formDay, :formdate_day
      t.rename :formMonth, :formdate_month
      t.rename :formYear, :formdate_year
      t.rename :breakDay, :breakdate_day
      t.rename :breakMonth, :breakdate_month
      t.rename :breakYear, :breakdate_year
      t.integer :city_id
      t.integer :country_id
    end

    rename_table(:members, :memberships)
    
    change_table :artist_aliases do |t|
      t.rename :alias, :name
      t.remove :details
    end

    rename_table(:artist_aliases, :name_aliases)
  end

  def self.down
  end
end
